<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "dh_address".
 *
 * @property integer $id
 * @property string $name
 * @property string $province
 * @property string $city
 * @property string $block
 * @property string $tel
 * @property string $detail
 * @property integer $uid
 */
class DhAddress extends \common\components\ActiveRecord2015
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_address';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'integer'],
            [['name', 'province', 'city', 'block', 'detail'], 'string', 'max' => 255],
            [['tel'], 'string', 'max' => 20]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'province' => 'Province',
            'city' => 'City',
            'block' => 'Block',
            'tel' => 'Tel',
            'detail' => 'Detail',
            'uid' => 'Uid',
        ];
    }
}
